Skip to main content

cameraControlCreate

Type

command

Summary

Creates a native camera control.

Syntax

cameraControlCreate <controlName>

Description

Low-level support for creating and manipulating camera controls on desktop and mobile platforms.

Native camera controls can only be created dynamically in script.

To destroy a camera control use: cameraControlDelete To configure a camera control use: cameraControlSet To read a property of a camera control use: cameraControlGet To control the behavior of a camera control use: cameraControlDo

Note: Camera controls are created with no initial video or audio output device selected. At least one of the "videoDevice" or "audioDevice" properties must be set to a recognized device ID value before recording can begin.

Parameters

NameTypeDescription

controlName

String to use to identify the control. The name must be unique amongst all existing controls.

Examples

	cameraControlCreate "myFirstCamera"
	cameraControlCreate "myFirstCamera"
cameraControlSet "myFirstCamera", "visible", true
cameraControlSet "myFirstCamera", "rect", "50,50,500,500"
cameraControlSet "myFirstCamera", "device", "front"
cameraControlDo "myFirstCamera", "takePicture"
put the result into url ("file:" & specialFolderPath("documents") & "/snapshot.jpg")

command: cameraControlDelete, cameraControlGet, cameraControlDo, cameraControlSet

function: cameraControlGet, cameraControls, cameraControlTarget

Compatibility and Support

Introduced

LiveCode 7.1

OS

mac

windows

ios

android

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?